{extend name="Public:base"/}

{block name="main"}


{notempty name="message"}
<div class="alert alert-info">
    <h6>提示建议</h6>
    <div class="content">
        <div class="bk20 hr"><hr /></div>
        {volist name="message" id="val"}
        <div class="on{$val.type}">&nbsp;{$val.content}</div><br />
        {/volist}
    </div>
</div>
{/notempty}

<?php if(APP_DEBUG){?>
<div class="alert alert-danger">
    <h6>提示建议</h6>
    <div class="content">
        <div class="bk20 hr"><hr /></div>
        上线之后请将APP_DEBUG参数设为false
    </div>
</div>
<?php } ?>

{if condition="APP_ENV == 'dev'"}
<div class="alert alert-danger">
    <h6>提示建议</h6>
    <div class="content">
        <div class="bk20 hr"><hr /></div>
        当前为开发环境,上线之后请将系统设置为生产环境
    </div>
</div>
{/if}

<?php if(is_dir('./install')){?>
<div class="alert alert-danger">
    <h6>提示建议</h6>
    <div class="content">
        <div class="bk20 hr"><hr /></div>
        上线之后请将install文件夹删除
    </div>
</div>
<?php } ?>

<div class="page-header">

    <div class="pull-left">
        <h1>欢迎使用{$Think.config.CMS_APPNAME}后台管理系统</h1>
    </div>

    <div class="pull-right">
        <ul class="stats">
            <li class="lightred">
                <i class="fa fa-calendar"></i>
                <div class="details">
                    <span class="big"><?php echo date("F j, Y")?></span>
                    <span id="time"></span>
                </div>
            </li>
        </ul>
    </div>
</div>

<div class="row">
    <div class="col-md-6">
        <div class="card">
            <div class="card-header">系统信息</div>
            <table class="table table-hover">
                {volist name="server_info" id="v"}
                <tr>
                    <td>{:L($key)}:</td>
                    <td>{$v}</td>
                </tr>
                {/volist}
                <tr>
                    <td>产品名称：</td>
                    <td>{$Think.config.CMS_APPNAME}</td>
                </tr>
                <tr>
                    <td>版本信息：</td>
                    <td>{$Think.config.cms_version}</td>
                </tr>
            </table>
        </div>
    </div>
</div>



<script type="text/javascript">
    function currentTime(){
        var d = new Date(),str = '';

        var today = new Array('星期日','星期一','星期二','星期三','星期四','星期五','星期六');
        var week = today[d.getDay()];

        str += week+'&nbsp;&nbsp;';
        str += d.getHours()+':';
        str += d.getMinutes()+':';
        str += d.getSeconds();
        return str;
    }
    setInterval(function(){$('#time').html(currentTime)},1000);
</script>
{/block}